<?php
/**
 * lsys task
 * @author     Lonely <shan.liu@msn.com>
 * @copyright  (c) 2017 Lonely <shan.liu@msn.com>
 * @license    http://www.apache.org/licenses/LICENSE-2.0
 */
namespace LSYS\Cron;
class RunJob{
	protected $job;
	protected $run_time;
	/**
	 * 执行任务中间对象
	 * @param Job $job
	 * @param int $run_time
	 */
	public function __construct(Job $job,$run_time){
		$this->job=$job;
		$this->run_time=$run_time;
	}
	/**
	 * 返回需要执行任务
	 * @return Job
	 */
	public function get_job(){
		return $this->job;
	}
	/**
	 * 返回该任务执行时间
	 */
	public function get_run_time(){
		return $this->run_time;
	}
	public function __destruct(){
		unset($this->job);
		unset($this->run_time);
	}
}